Optimal. Leaf size=166 \[ -\frac {4 i \text {Li}_2\left (1-\frac {2}{i a x+1}\right )}{3 a^5 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {\tan ^{-1}(a x)}{3 a^5 c}-\frac {8 \log \left (\frac {2}{1+i a x}\right ) \tan ^{-1}(a x)}{3 a^5 c}+\frac {x}{3 a^4 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 10, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.454, Rules used = {4916, 4852, 321, 203, 4920, 4854, 2402, 2315, 4846, 4884} \[ -\frac {4 i \text {PolyLog}\left (2,1-\frac {2}{1+i a x}\right )}{3 a^5 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}+\frac {x}{3 a^4 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {\tan ^{-1}(a x)}{3 a^5 c}-\frac {8 \log \left (\frac {2}{1+i a x}\right ) \tan ^{-1}(a x)}{3 a^5 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 321
Rule 2315
Rule 2402
Rule 4846
Rule 4852
Rule 4854
Rule 4884
Rule 4916
Rule 4920
Rubi steps
\begin {align*} \int \frac {x^4 \tan ^{-1}(a x)^2}{c+a^2 c x^2} \, dx &=-\frac {\int \frac {x^2 \tan ^{-1}(a x)^2}{c+a^2 c x^2} \, dx}{a^2}+\frac {\int x^2 \tan ^{-1}(a x)^2 \, dx}{a^2 c}\\ &=\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\int \frac {\tan ^{-1}(a x)^2}{c+a^2 c x^2} \, dx}{a^4}-\frac {\int \tan ^{-1}(a x)^2 \, dx}{a^4 c}-\frac {2 \int \frac {x^3 \tan ^{-1}(a x)}{1+a^2 x^2} \, dx}{3 a c}\\ &=-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {2 \int x \tan ^{-1}(a x) \, dx}{3 a^3 c}+\frac {2 \int \frac {x \tan ^{-1}(a x)}{1+a^2 x^2} \, dx}{3 a^3 c}+\frac {2 \int \frac {x \tan ^{-1}(a x)}{1+a^2 x^2} \, dx}{a^3 c}\\ &=-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {2 \int \frac {\tan ^{-1}(a x)}{i-a x} \, dx}{3 a^4 c}-\frac {2 \int \frac {\tan ^{-1}(a x)}{i-a x} \, dx}{a^4 c}+\frac {\int \frac {x^2}{1+a^2 x^2} \, dx}{3 a^2 c}\\ &=\frac {x}{3 a^4 c}-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {8 \tan ^{-1}(a x) \log \left (\frac {2}{1+i a x}\right )}{3 a^5 c}-\frac {\int \frac {1}{1+a^2 x^2} \, dx}{3 a^4 c}+\frac {2 \int \frac {\log \left (\frac {2}{1+i a x}\right )}{1+a^2 x^2} \, dx}{3 a^4 c}+\frac {2 \int \frac {\log \left (\frac {2}{1+i a x}\right )}{1+a^2 x^2} \, dx}{a^4 c}\\ &=\frac {x}{3 a^4 c}-\frac {\tan ^{-1}(a x)}{3 a^5 c}-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {8 \tan ^{-1}(a x) \log \left (\frac {2}{1+i a x}\right )}{3 a^5 c}-\frac {(2 i) \operatorname {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+i a x}\right )}{3 a^5 c}-\frac {(2 i) \operatorname {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+i a x}\right )}{a^5 c}\\ &=\frac {x}{3 a^4 c}-\frac {\tan ^{-1}(a x)}{3 a^5 c}-\frac {x^2 \tan ^{-1}(a x)}{3 a^3 c}-\frac {4 i \tan ^{-1}(a x)^2}{3 a^5 c}-\frac {x \tan ^{-1}(a x)^2}{a^4 c}+\frac {x^3 \tan ^{-1}(a x)^2}{3 a^2 c}+\frac {\tan ^{-1}(a x)^3}{3 a^5 c}-\frac {8 \tan ^{-1}(a x) \log \left (\frac {2}{1+i a x}\right )}{3 a^5 c}-\frac {4 i \text {Li}_2\left (1-\frac {2}{1+i a x}\right )}{3 a^5 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.31, size = 90, normalized size = 0.54 \[ \frac {\left (a^3 x^3-3 a x+4 i\right ) \tan ^{-1}(a x)^2-\tan ^{-1}(a x) \left (a^2 x^2+8 \log \left (1+e^{2 i \tan ^{-1}(a x)}\right )+1\right )+4 i \text {Li}_2\left (-e^{2 i \tan ^{-1}(a x)}\right )+a x+\tan ^{-1}(a x)^3}{3 a^5 c} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 3.17, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {x^{4} \arctan \left (a x\right )^{2}}{a^{2} c x^{2} + c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 284, normalized size = 1.71 \[ \frac {x^{3} \arctan \left (a x \right )^{2}}{3 a^{2} c}-\frac {x \arctan \left (a x \right )^{2}}{a^{4} c}+\frac {\arctan \left (a x \right )^{3}}{3 a^{5} c}-\frac {x^{2} \arctan \left (a x \right )}{3 a^{3} c}+\frac {4 \arctan \left (a x \right ) \ln \left (a^{2} x^{2}+1\right )}{3 a^{5} c}+\frac {x}{3 a^{4} c}-\frac {\arctan \left (a x \right )}{3 a^{5} c}+\frac {2 i \ln \left (a x +i\right ) \ln \left (\frac {i \left (a x -i\right )}{2}\right )}{3 a^{5} c}+\frac {2 i \ln \left (a x -i\right ) \ln \left (a^{2} x^{2}+1\right )}{3 a^{5} c}-\frac {i \ln \left (a x -i\right )^{2}}{3 a^{5} c}-\frac {2 i \ln \left (a x +i\right ) \ln \left (a^{2} x^{2}+1\right )}{3 a^{5} c}-\frac {2 i \ln \left (a x -i\right ) \ln \left (-\frac {i \left (a x +i\right )}{2}\right )}{3 a^{5} c}-\frac {2 i \dilog \left (-\frac {i \left (a x +i\right )}{2}\right )}{3 a^{5} c}+\frac {2 i \dilog \left (\frac {i \left (a x -i\right )}{2}\right )}{3 a^{5} c}+\frac {i \ln \left (a x +i\right )^{2}}{3 a^{5} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x^4\,{\mathrm {atan}\left (a\,x\right )}^2}{c\,a^2\,x^2+c} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {x^{4} \operatorname {atan}^{2}{\left (a x \right )}}{a^{2} x^{2} + 1}\, dx}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________